# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-pinquery
pkgver=0.3_git20211031
pkgrel=1
_commit="ec89a54e53e21a23b04f410f99d810b10882c197"
pkgdesc="QML based PIN query application using ofono-qt"
url="https://github.com/nemomobile-ux/glacier-pinquery"
# armhf blocked by qtquickcontrols-nemo
arch="all !armhf"
license="LGPL-2.0-or-later"
depends="qtquickcontrols-nemo"
makedepends="
	cmake
	libglacierapp-dev
	libqofono-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	samurai
	"
source="https://github.com/nemomobile-ux/glacier-pinquery/archive/$_commit/glacier-pinquery-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
28238ff29a3acaa41804dbce7e8eeeee80ef50d93e30d82c288a08612161278cf95dea6107edf9c9f33a822ab93160f06c5e53d3ef27089fd8a465cc60b27a70  glacier-pinquery-ec89a54e53e21a23b04f410f99d810b10882c197.tar.gz
"
